package com.ruoyi.project.cms.mm.task.service.impl;

import com.ruoyi.project.cms.mm.task.domain.TaskInfo;
import com.ruoyi.project.cms.mm.task.mapper.TaskInfoMapper;
import com.ruoyi.project.cms.mm.task.service.TaskInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Administrator
 * @create 2020-05-17 11:30
 * @desc taskInfoService实现类
 **/
@Service
public class TaskInfoServiceImpl implements TaskInfoService {
    @Autowired
    private TaskInfoMapper taskInfoMapper;

    @Override
    public List<TaskInfo> selectTaskInfoList(TaskInfo taskInfo) {
        return taskInfoMapper.selectTaskInfoList(taskInfo);
    }

    @Override
    public int deleteTaskByTid(String tid) {
        return taskInfoMapper.deleteTaskByTid(tid);
    }

    @Override
    public TaskInfo selectTaskInfoByTid(Integer tid) {
        return taskInfoMapper.selectTaskInfoByTid(tid);
    }

    @Override
    public int insertTask(TaskInfo info) {
        return taskInfoMapper.insert(info);
    }

    @Override
    public List<TaskInfo> selectTaskInfoByDuid(String loginName) {
        return taskInfoMapper.selectTaskInfoByDuid(loginName);
    }

    @Override
    public List<TaskInfo> selectByDlogAndStatus(TaskInfo info) {
        return taskInfoMapper.selectByDlogAndStatus(info);
    }

    @Override
    public int resultApply(TaskInfo info) {
        return taskInfoMapper.updateResult(info);
    }

    @Override
    public int updateTask(TaskInfo info) {
        return taskInfoMapper.updateTask(info);
    }
}
